#ifndef MYGRAPHICSVIEW_H
#define MYGRAPHICSVIEW_H

#include <QtGui>

class Player;
class Bullet;
class Map;
class MovingObject;


class MyGraphicsView : public QGraphicsView
{
    Q_OBJECT

public:
    MyGraphicsView(QWidget* = NULL);
    ~MyGraphicsView();

    int mouseX, mouseY;
    Map *map;
    Player *player;
    QList<Player *> *playersList;
    QList<Bullet *> *bulletsList;

protected:
    void mousePressEvent(QMouseEvent *event);
//    void mouseMoveEvent(QMouseEvent *event);
    void keyPressEvent(QKeyEvent *event);
    void keyReleaseEvent(QKeyEvent *event);

private:
    qreal dT;

    //QGraphicsScene *xscene;

};

#endif
